﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CoreHelper.Validation.Validators
{
    [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, AllowMultiple = false)]
    public class DigitsValidatorAttribute : RegexValidatorAttribute
    {
        public DigitsValidatorAttribute() : this(ValidationUtils.Messages.Digits)
        {
        }
        public DigitsValidatorAttribute(string errorMessage) : base(ValidationUtils.RegexPatterns.Digits, errorMessage)
        {
        }
    }
}
